!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[SiteButton_ButtonArrow]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[SiteButton_ButtonArrow]"]=t(require("react")):e["rb_wixui.thunderbolt[SiteButton_ButtonArrow]"]=t(e.React)}("undefined"!=typeof self?self:this,(function(e){return function(){var t={5329:function(t){"use strict";t.exports=e},448:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}const u=s(32),c=s(i),d=e=>{c(e),u(e)},p=(s(l),["aria-id","aria-metadata","aria-type"]),f=(e,t)=>Object.entries(e).reduce(((e,[a,r])=>(t.includes(a)||(e[a]=r),e)),{}),b=e=>{const{role:t,tabIndex:a,tabindex:r,screenReader:n,lang:o,ariaAttributes:i={}}=e,l=Object.entries(i).reduce(((e,[t,a])=>({...e,[`aria-${t}`.toLowerCase()]:a})),{});return{role:t,tabIndex:a??r,screenReader:n,ariaAttributes:f(l,p),lang:o}},m=e=>Object.entries(e).reduce(((e,[t,a])=>(t.includes("data-")&&(e[t]=a),e)),{});const v=(e,t)=>e?{"data-comp":t,"data-aid":t}:{},y={root:"linkElement"},k=(e,r)=>{const{href:n,role:o,target:i,rel:l,className:s="",children:p,linkPopupId:f,anchorDataId:b,anchorCompId:v,tabIndex:k,dataTestId:h=y.root,title:g,onClick:C,onDoubleClick:B,onMouseEnter:x,onMouseLeave:I,onFocus:w,onFocusCapture:P,onBlurCapture:L,"aria-live":M,"aria-disabled":O,"aria-label":D,"aria-labelledby":E,"aria-pressed":N,"aria-expanded":S,"aria-describedby":A,"aria-haspopup":T,"aria-current":_,dataPreview:F,dataPart:j}=e,R=void 0!==e.activateByKey?e.activateByKey:(e=>e?"SpaceOrEnter":"Space")(f);let K;switch(R){case"Enter":K=c;break;case"Space":K=u;break;case"SpaceOrEnter":K=d;break;default:K=void 0}return void 0!==n||f?a.createElement("a",t()({},m(e),{"data-testid":h,"data-popupid":f,"data-anchor":b,"data-anchor-comp-id":v,"data-preview":F,"data-part":j,href:n||void 0,target:i,role:f?"button":o,rel:l,className:s,onKeyDown:K,"aria-live":M,"aria-disabled":O,"aria-label":D,"aria-labelledby":E,"aria-pressed":N,"aria-expanded":S,"aria-haspopup":T,"aria-describedby":A,"aria-current":_,title:g,onClick:C,onMouseEnter:x,onMouseLeave:I,onDoubleClick:B,onFocus:w,onFocusCapture:P,onBlurCapture:L,ref:r,tabIndex:f?0:k}),p):a.createElement("div",t()({},m(e),{"data-testid":h,"data-preview":F,"data-part":j,className:s,tabIndex:k,"aria-label":D,"aria-labelledby":E,"aria-haspopup":T,"aria-disabled":O,"aria-expanded":S,title:g,role:o,onClick:C,onDoubleClick:B,onMouseEnter:x,onMouseLeave:I,ref:r}),p)};var h=a.forwardRef(k);const g="buttonElement",C="linkElement";let B=function(e){return e.Link="Link",e.Button="Button",e}({});const x=()=>{},I=(e,t)=>e===B.Link&&!(e=>Boolean(e&&(e.href||e.linkPopupId)))(t),w=(e,t)=>e===B.Link&&t,P=(e,t)=>{var r,n,o,i;const{id:l,className:s,customClassNames:u=[],autoFocus:d,label:p="",skin:f,hasPlatformClickHandler:y=!1,link:k,ariaLabel:h,isQaMode:g,fullNameCompType:C,reportBiOnClick:P,onFocus:L,onBlur:M,onClick:O=x,onDblClick:D=x,onMouseEnter:E=x,onMouseLeave:N=x,ariaAttributes:S,a11y:A={},lang:T,shouldFixKeyboardBehavior:_}=e;let{isDisabled:F=!1}=e;!0!==F&&(F=!1);const j=y?B.Button:B.Link,{tabIndex:R,ariaAttributes:K}=b({ariaAttributes:{...S,...A,disabled:null!=(r=A.disabled)?r:F,label:null!=(n=null!=(o=null!=(i=null==S?void 0:S.label)?i:A.label)?o:h)?n:p}}),$=((e,t,a,r)=>a?-1:e===B.Button?r:I(e,t)?null!=r?r:0:r)(j,k,F,R),U=((e,t,a)=>I(e,t)||w(e,a)?"button":void 0)(j,k,F),q=k&&{href:F?void 0:k.href,target:k.target,rel:k.rel,linkPopupId:k.linkPopupId,anchorDataId:k.anchorDataId,anchorCompId:k.anchorCompId,activateByKey:"Enter"},G=(({reportBiOnClick:e,onClick:t})=>(0,a.useCallback)((a=>{e?.(a),t?.(a)}),[e,t]))({reportBiOnClick:P,onClick:F?x:O}),H=_&&j===B.Link?{onKeyDown:c}:{};return a.createElement(f,{wrapperProps:{...m(e),className:s,id:l,role:U,tabIndex:$,"aria-disabled":K["aria-disabled"],lang:T,onClick:G,onDoubleClick:F?x:D,onMouseEnter:E,onMouseLeave:N,...H,...v(g,C)},autoFocus:d,elementType:j,linkProps:q,a11yProps:K,label:p,onFocus:F?void 0:L,onBlur:F?void 0:M,ref:t,customClassNames:u})};var L=a.forwardRef(P);const M="wixui-",O=(e,...t)=>{const a=[];return e&&a.push(`${M}${e}`),t.forEach((e=>{e&&(a.push(`${M}${e}`),a.push(e))})),a.join(" ")};function D(e){var t,a,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{let{elementType:r,linkProps:n,a11yProps:i,className:l,children:s,autoFocus:u,onBlur:c,onFocus:p,disabled:f}=e;const b=o().useRef(null);o().useImperativeHandle(a,(()=>({focus:()=>{var e;return null==(e=b.current)?void 0:e.focus()},blur:()=>{var e;return null==(e=b.current)?void 0:e.blur()}})));const m=E(l,S);switch(r){case B.Link:return o().createElement(h,t()({},n||{},i,{className:m,ref:b,"data-testid":C,onFocusCapture:p,onBlurCapture:c}),s);case B.Button:return o().createElement("button",t()({},i,{ref:b,"data-testid":g,className:m,autoFocus:u,onFocus:p,onBlur:c,disabled:f,onKeyDown:d}),s);default:return null}};var T=o().forwardRef(A);const _=(e,r)=>{let{wrapperProps:n,linkProps:o,a11yProps:i,elementType:l,label:s,skinsStyle:u,onFocus:c,onBlur:d,customClassNames:p=[]}=e;return a.createElement("div",t()({},n,{className:E(u.root,n.className)}),a.createElement("div",{className:u.arr+" "+u.top}),a.createElement("div",{className:u.arr+" "+u.bottom}),a.createElement("div",{className:u.bg}),a.createElement(T,{linkProps:o,a11yProps:i,elementType:l,className:E(u.link,O(N.root,...p)),onFocus:c,onBlur:d,ref:r},a.createElement("span",{className:E(u.label,O(N.buttonLabel))},s)))};var F=a.forwardRef(_),j={link:"DF9NQC",root:"I0Z1hF",bg:"SdUQJg",label:"NmszKH",top:"J5uOBX",bottom:"fFDpax"};const R=a.forwardRef(((e,r)=>a.createElement(F,t()({},e,{skinsStyle:j,ref:r})))),K=(e,r)=>a.createElement(L,t()({},e,{skin:R,ref:r}));var $=a.forwardRef(K);const U=e=>e.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)),q=e=>"linkPopupId"in e,G=(e,t)=>{if(q(e))return e.linkPopupId;{const{pagesMap:a,mainPageId:r}=t||{};if(!a)return;const n=new URL(e.href??"");let o=Object.values(a).find((({pageUriSEO:e})=>!!e&&n.pathname?.includes(e)));return o||(o=r?a[r]:void 0),o?.pageId}},H=e=>{if(void 0!==e)return null===e?"None":e.type},J=(e,t)=>{if(!e?.type)return;const{type:a}=e;switch(a){case"AnchorLink":return e.anchorDataId;case"DocumentLink":return e.docInfo?.name;case"PageLink":const a=G(e,t);return a&&t?.pagesMap?.[a]?.title;default:return e.href}},Q=(e,t,a)=>{const{link:r,value:n,details:o,actionName:i,elementType:l,trackClicksAnalytics:s,pagesMetadata:u,...c}=t;if(!s||"function"!=typeof e)return;const d=u&&{...u,pagesMap:window.viewerModel?.siteFeaturesConfigs?.router?.pagesMap},p=((e,t)=>{if(!e?.type)return;const{type:a}=e;switch(a){case"AnchorLink":return(e=>"anchorDataId"in e&&("SCROLL_TO_TOP"===e.anchorDataId||"SCROLL_TO_BOTTOM"===e.anchorDataId))(e)?void 0:{id:e.anchorDataId};case"DocumentLink":return{id:e.docInfo?.docId};case"PageLink":return{id:G(e,t),isLightbox:q(e)};default:return}})(r,d),f=o||p?JSON.stringify({...p,...o}):void 0;e({src:76,evid:1113,...{...c,bl:navigator.language,url:window.location.href,details:f,elementType:l??"Unknown",actionName:i??H(r),value:n??J(r,d)}},{endpoint:"pa",...a})};var Z;!function(e){e.Text="Text",e.Menu="Menu",e.Image="Image",e.Input="Input",e.Login="Login",e.Button="Button",e.Social="Social",e.Gallery="Gallery",e.Community="Community",e.Decorative="Decorative",e.MenuAndSearch="MenuAndSearch",e.MenuAndAnchor="MenuAndAnchor"}(Z||(Z={}));var V;const z={SiteButton_ButtonArrow:{component:$,controller:(V=e=>{let{mapperProps:t,stateValues:a}=e;const{trackClicksAnalytics:r,compId:n,language:o,mainPageId:i,...l}=t,{experiments:s={}}=a,u=((e,t)=>!0===e[t]||"true"===e[t]||"new"===e[t])(s,"specs.thunderbolt.siteButtonKeyboardBehavior");return{...l,reportBiOnClick:e=>{const{fullNameCompType:t,label:s,link:u,isDisabled:c}=l,{reportBi:d}=a;Q(d,{link:u,language:o,trackClicksAnalytics:r,elementTitle:s,elementType:t,pagesMetadata:{mainPageId:i},elementGroup:Z.Button,details:{isDisabled:null!=c&&c},element_id:null!=n?n:e.currentTarget.id})},shouldFixKeyboardBehavior:u}},{useComponentProps:(e,t,a)=>{const r=(e=>({...e,updateStyles:t=>{const a=Object.entries(t).reduce(((e,[t,a])=>{return{...e,[(r=t,r.startsWith("--")?t:U(t))]:void 0===a?null:a};var r}),{});e.updateStyles(a)}}))(a);return V({mapperProps:e,stateValues:t,controllerUtils:r})}})}}}(),n}()})); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[SiteButton_ButtonArrow].c715b139.bundle.min.js.map